<template>
  <div class="app-container">
  <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
    <el-form-item label="登录地址" prop="ipaddr">
      <el-input
        v-model="queryParams.ipaddr"
        placeholder="请输入登录地址"
        clearable
        size="small"
        style="width: 240px;"
        @keyup.enter.native="handleQuery"
      />
    </el-form-item>
    <el-form-item label="用户名称" prop="userName">
      <el-input
        v-model="queryParams.userName"
        placeholder="请输入用户名称"
        clearable
        size="small"
        style="width: 240px;"
        @keyup.enter.native="handleQuery"
      />
    </el-form-item>


    <el-form-item label="状态" prop="status">
      <el-select
        v-model="queryParams.status"
        placeholder="登录状态"
        clearable
        size="small"
        style="width: 240px"
      >
        <el-option
          v-for="dict in dict.type.sys_common_status"
          :key="dict.value"
          :label="dict.label"
          :value="dict.value"
        />
      </el-select>
    </el-form-item>


    <el-form-item label="登录时间">
      <el-date-picker
        v-model="dateRange"
        size="small"
        style="width: 240px"
        value-format="yyyy-MM-dd"
        type="daterange"
        range-separator="-"
        start-placeholder="开始日期"
        end-placeholder="结束日期"
      ></el-date-picker>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
      <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
    </el-form-item>
  </el-form>
  </div>
</template>

<script>
export default {
  name: "DrugChangePriceFindInfoBarBack",
  dicts: ['prescription_type'],
  data() {
    return {
      // 查询参数
      queryParams:{

      }
    }
  },
  methods: {
    //获取处方类型
    findInfo(selectValue) {
      this.$emit("getValue", selectValue)
    },
    //获取药品名称
    getInputValue(inputValue) {
      this.$emit("getInputValue", inputValue)
    }
  }
}
</script>

<style scoped>
.move-down-little {
  position: relative;
  top: 3px;
}
</style>
